package cn.groupmarket.types.design.framework.link.model2;

import cn.groupmarket.types.design.framework.link.model2.chain.BusinessLinkedList;
import cn.groupmarket.types.design.framework.link.model2.handler.ILogicHandler;

public class LinkArmory<T,D,R> {

    private final BusinessLinkedList<T,D,R> logicLink;

    @SafeVarargs
    public LinkArmory(String LinkName, ILogicHandler<T,D,R>... logicHandlers) {
        logicLink = new BusinessLinkedList<>(LinkName);
        for(ILogicHandler<T,D,R> logicHandler : logicHandlers) {
            logicLink.add(logicHandler);
        }
    }

    public BusinessLinkedList<T,D,R> getLogicLink() {
        return logicLink;
    }

}
